﻿using UnityEngine;
using System.Collections;
using System.Xml;
public class EffectDamage : EffectGeneric
{
    public int DamageNumber;

    public override void Init(XmlNode node, Unit unit)
    {
        base.Init(node, unit);
        this.DamageNumber =int.Parse(node.Attributes["DamageNumber"].Value);
    }
    public override void Exec()
    {
        this.DstUnit.HP = this.DstUnit.HP - this.DamageNumber;
        
    }
}
